package com.iotechn.iot.device.entity.model;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2018-09-17
 * Time: 下午1:57
 */
public class DeviceParamValueModel {

    private String name;

    private String value;

    private long gmtUpdate;

    private int expire;

    public boolean getIsExpire() {
        return System.currentTimeMillis() - (expire * 1000) > gmtUpdate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public long getGmtUpdate() {
        return gmtUpdate;
    }

    public void setGmtUpdate(long gmtUpdate) {
        this.gmtUpdate = gmtUpdate;
    }

    public int getExpire() {
        return expire;
    }

    public void setExpire(int expire) {
        this.expire = expire;
    }
}
